body {
    font-family: "Jost", sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: #292524;
    color: white;
}

.logo-title {
    display: flex;
    column-gap: 20px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
}

.title {
    font-size: 15px;
}

.title > span {
    font-weight: bold;
    font-size: 20px;
}

.form-search {
    display: flex;
    align-items: center;
    justify-content: center;
}

main {
    background-color: #E7E5E4;
    color: #57534D;
    flex: 1;
}

svg.logo {
    height: 40px;
    width: 40px;
    border-radius: 5px;
}

hr {
    border: none;
    border-top:  1px dashed #A6A09B;
    margin-top: 20px;
    margin-bottom: 20px;
}

p {
    font-size: 15px;
}

footer {
    color: #57534D;
    justify-self: end;
}

.search-bar {
    background-color: #57534D;
    color: #FFFFFF;
    border-radius: 10px 0 0 10px;
    font-family: "Jost", sans-serif;
    border: 0;
    padding: 9px 20px;
    height: 22px;
}

input::placeholder {
    color: #FFFFFF;
    font-size: 15px;
    font-family: "Jost", sans-serif;
}

.search-button {
    width: 60px;
    height: 40px;
    padding: 0;
    border: 0;
    background-color: #79716B;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

nav {
    padding: 20px 0;
}

nav > div {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}
.choice-class {
    display: flex;
    flex-direction: column;
    row-gap: 11px;
}

.choice-class-p {
    font-weight: 500;
    margin: 0;
}

.ul_class {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-class + hr {
    margin: 0;
}

li.rank {
    display: inline-flex;
    list-style-type: none;
}

li.rank > a {
    height: 40px;
    width: 40px;
    box-sizing: border-box;
    font-weight: bold;
    border: #D6D3D1 1px solid;
    border-radius: 5px;
    font-size: 15px;
    color: #57534D;
    text-decoration: none;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
}

.choice-subject {
    display: flex;
    flex-direction: column;
    row-gap: 11px;
}

.choice-subject-p {
    font-weight: 500;
    margin: 0;
}

li.subject {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    font-size: 15px;
    position: relative;
}

li.subject > a {
    height: 80px;
    min-width: 100px;
    white-space: nowrap;
    padding: 18px 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: #57534D;
    border: #D6D3D1 1px solid;
    border-radius: 5px;
}

li.subject > img {
    width: 80px;
    height: 80px;
    position: absolute;
    right: 0;
    z-index: -1;
    opacity: 25%;
}

.div_subject {
    overflow: hidden;
    position: relative;
    height: auto;
}

#ul_subject { 
    max-height: 84px;
    display: flex;
    transition: transform 0.3s ease-in-out;
    padding: 0;
    margin: 0;
}

.swiper-button-prev {
    width: 60px;
    height: 100%;
    background: linear-gradient(to left, transparent, white);
    position: absolute;
    top: 0;
    display: none;
}

.swiper-button-next {
    width: 60px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(to right, transparent, white);
}

#but_back {
    left: 0;
    width: 40px;
    height: 40px;
    border: #57534D 2px solid;
    background-color: white;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

#but_next {
    right: 0;
    width: 40px;
    height: 40px;
    border: #57534D 2px solid;
    background-color: white;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

li.active > a {
    border: #497D00 2px solid;
    color: #497D00;
}

header > div {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

ol.search-result {
    display: none;
    background-color: #44403B;
    position: absolute;
    list-style-type: none;
    top: 80px;
    z-index: 1;
    padding: 20px 20px 10px;
    box-sizing: border-box;
    margin: 0;
}

.search-result > li {
    border: none;   
    margin-bottom: 10px;
}

.search-result > li > a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-result > li > a > img {
    width: 80px;
    height: 120px;
    background-size: cover;
    border-radius: 5px;
}

input:focus {
    outline: none;
}

.li-output-search {
    background-color: #57534D;
}

.bold-text {
    font-weight: bold;
}

.medium-text {
    font-weight: 500;
}

main > div {
    display: flex;
    flex-direction: column;
    row-gap: 40px;
}

section.list-book {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.book-info > p {
    margin: 0;
    color: #57534D;
}

.bottom-description > h2 {
    font-size: 20px;
    color: #292524;
    font-weight: bold;
    margin: 0;
}

.bottom-description > p {
    line-height: 1.5;
}

.bottom-description > * {
    width: 100%;
}

h1 {
    color: #292524;
    font-size: 24px;
    margin: 0;
}

.footer-a > a{
    color: #292524;
    font-size: 15px;
}

footer > div {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.footer-p {
    text-align: center;
    margin: 0;
}

.footer-a {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.book {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.book-picture {
    border-radius: 5px;
    background-size: cover;
}

.book-title {
    font-size: 18px;
    color: #292524;
    margin: 0;
}

.book-info > .color-dark-gray {
    color: #292524;
}

.book-a {
    text-decoration: none;
}



.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    align-items: end;
    font-size: 15px;
}
.breadcrumbs li{
    display: inline-block;
    color: #A6A09B;
}
.breadcrumbs li:not(:last-child)::after {
    content: '-';
    color: #292524;
    margin: 5px;
}
.breadcrumbs li:nth-last-child(2)::after {
    color: #A6A09B;
}
.breadcrumbs a {
    text-decoration: none;
    color: #292524;
}
.book-description {
    margin: 0;
}
.list-tasks-p {
    font-size: 20px;
    color: #292524;
    font-weight: bold;
    margin: 0;
}
.tasks {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.tasks > div.section-task-parent {
    padding-left: 0;
}
.section-task-parent > div{
    display: none;
    flex-direction: column;
    row-gap: 10px;
    padding-left: 20px;
}
h3.title-paragraph, p.title-paragraph {
    margin: 0;
    color: #292524;
    font-size: 18px;
    background-color: white;
    min-height: 50px;
    padding: 12px 20px;
    box-sizing: border-box;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: normal;
}
ul.exercises {
    margin: -10px 0 0;
    padding: 0 20px 20px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}
ul.exercises a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 40px;
    box-sizing: border-box;
    border: #D6D3D1 1px solid;
    border-radius: 5px;
    color: #57534D;
    text-decoration: none;
    font-size: 15px;
}
h3.title-paragraph.last-active, p.title-paragraph.last-active {
    border-radius: 10px 10px 0 0;
}
h3.title-paragraph::after, p.title-paragraph::after {
    content: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.25 6.875L10 13.125L3.75 6.875' stroke='%23292524' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 20px;
    height: 20px;
}
.section-task-parent.active > div {
    display: flex;
}
.section-task-parent.active > h3.title-paragraph::after, .section-task-parent.active > p.title-paragraph::after{
    transform: scaleY(-1);
}
.section-task-parent.section-last-child {
    padding-left: 0;
}
.section-task-parent{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    padding-left: 20px;
}
div.div-for-hr {
    display: block;
    padding: 0 20px 10px;
    background-color: white;
    margin-top: -10px;
}
div.div-for-hr > hr {
    margin: 0;
}


.name-task {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    color: #292524;
    font-size: 15px;
    width: 100%;
}
.name-task > h2{
    color: #292524;
    font-weight: bold;
    font-size: 20px;
    margin: 0;
}
.name-task img {
    border-radius: 10px;
    width: 100%;
}
.name-task > ol {
    display: block;
    padding-left: 20px;
    margin: 0;
    box-sizing: border-box;
}
.name-task p {
    margin: 0;
}
h2.decision {
    margin-top: 20px;
}
.button-next-prev {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.previous-task {
    font-size: 15px;
    display: flex;
    height: 60px;
    width: min-content;
    background-color: white;
    column-gap: 20px;
    align-items: center;
    padding: 8px 20px;
    box-sizing: border-box;
    border-radius: 10px;
    text-decoration: none;
    color: black;
    text-align: right;   
}
.next-task {
    font-size: 15px;
    display: flex;
    height: 60px;
    width: min-content;
    background-color: white;
    column-gap: 20px;
    align-items: center;
    padding: 8px 20px;
    box-sizing: border-box;
    border-radius: 10px;
    text-decoration: none;
    color: black;
}


@media screen and (min-width: 800px) {
    .container {
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    .search-bar {
        width: 423px;
    }
    .search-button {
        border-radius: 0 10px 10px 0;
    }
    .div_subject {
        width: 800px;
    }
    .book {
        width: 800px;
        align-items: flex-start;
        justify-content: center;
        box-sizing: border-box;
    }
    .book-picture {
        width: 150px;
        height: 200px;
    }
    .book-hr {
        margin: 10px 0;
    }
    main {
        padding: 40px 20px 25px;
    }
    .bottom-description {
        width: 800px;
        padding: 0 20px;
        box-sizing: border-box;
    }
    ol.search-result {
        right: 0;
        width: 800px;
    }   
    .book-info {
        display: grid;
        grid-template-columns: auto 1fr;
        width: 590px;
        gap: 5px 45px;
    }
}

@media screen and (max-width: 799px) {
    .search-bar {
        display: none;
    }
    .search-button {
        border-radius: 10px;
        
    }
    .div_subject {
        width: 100%;
    }
    .choice-class {
        row-gap: 10px;
        padding: 0 20px;
    }
    .choice-class + hr {
        margin: 0 20px ;
    }
    .choice-subject {
        row-gap: 10px;
    }
    .choice-subject-p {
        margin-left: 20px;
    }
    .container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    .book {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    .book-picture {
        width: 34%;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
    .book-hr {
        display: none;
    }
    main {
        padding-top: 40px;
        padding-bottom: 25px;
    }
    .book-title {
        text-align: center;
        padding-bottom: 10px;
    }
    ol.search-result {
        width: 100%;
        right: 0;
    }
    #ul_subject {
        padding: 0 20px;
    }
    .book-info {
        display: grid;
        grid-template-columns: 100%;
        gap: 0;
    }
    .color-dark-gray:not(:last-child) {
        padding-bottom: 10px;
    }
    .logo-title.active-search-bar {
        display: none;
    }
    .search-bar.active-search-bar {
        display: flex;
        flex: 1;
        justify-content: end;
    }
    .search-button.active-search-bar {
        border-radius: 0 10px 10px 0;
    }
    .form-search.active-search-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 1;
    }
    .container.no-padding {
        padding: 0;
    }
    .container.no-padding > p,ul {
        margin-left: 20px;
        margin-right: 20px;
    }
    #but_next {
        border: #57534D 2px solid;
        border-radius: 5px 0 0 5px;
        border-right: none;
    }
    #but_back {
        border: #57534D 2px solid;
        border-radius: 0 5px 5px 0;
        border-left: none;
    }
    .button-next-prev {
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
        justify-content: center;
    }
}